package cn.wokoba.dao.mapper;



import cn.wokoba.dao.pojo.RuleTreeNodeLine;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//规则树节点连线
@Mapper
public interface RuleTreeNodeLineMapper extends BaseMapper<RuleTreeNodeLine> {

    @Select("""
            select tree_id, rule_node_from, rule_node_to, rule_limit_type, rule_limit_value
                    from rule_tree_node_line
                    where tree_id = #{treeId}""")
    List<RuleTreeNodeLine> queryRuleTreeNodeLineListByTreeId(String treeId);
}
